//
//  UIScrollView+PullRefresh.h
//  PhoneBookBag
//
//  Created by 吴海超 on 14/8/20.
//  Copyright (c) 2014年 吴海超. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    HeaderStyle,
    FooterStyle,
    AllStyle,
    hiddenStyle,
    showStyle
}PullRefreshStyle;


@protocol  PullRefreshDelegate<NSObject>

//上拉刷新回调
- (void)UpPullRequest;

//下拉刷新回调
- (void)DownPullRequest;

@end


@interface UIScrollView (PullRefresh)
- (void)setRefreshStyle:(PullRefreshStyle)refreshStyle  delegate:(id<PullRefreshDelegate>)delegate;

- (void)DidCompletedWithRefreshIsDownPull:(BOOL)isDown;
- (void)cancelledObsever;
- (void)addObserver;
@end
